<div id="content">
  <div id="comments">
    <h3><img src="/images/comments.png" /> 大家在多背一公斤做什么 ... <%= link_to "返回首页", home_url %></h3>
    <% for b in @broadcasts -%>
      <div>
        <% color = %w(orange purple red blue green) %>
        <span style="color:<%= color[rand(color.size)]%>">
          <% if b.from == 0 -%>
            <%= b.content %>
          <% else -%>
            <%= h b.content %>
          <% end -%>
        </span>
        <span class="sysmsg"><img src="/images/comment.png" /> <%= "by #{link_to b.sender.login, user_path(b.sender)}" unless b.from==0 %> <%= show_datetime b.created_at %></span>
      </div>
    <% end -%>
    <div id="post-comment" class="p">
      <div class="comment-tl"><img src="/images/comment_add.png" /> 我想说两句</div>
      <% form_for :broadcast, :url => {:controller => 'broadcasts', :action => 'create'} do |f| %>
        <%= f.text_area :content, :rows=>5 %>
        <p><%= submit_tag "发送" %></p>
      <% end -%>
    </div>
  </div>
</div>